package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsShoppingCart;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsShoppingCartExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsShoppingCartMapper {
    long countByExample(DirectMailGoodsShoppingCartExample example);

    int deleteByExample(DirectMailGoodsShoppingCartExample example);

    int deleteByPrimaryKey(Integer cartId);

    int insert(DirectMailGoodsShoppingCart record);

    int insertSelective(@Param("record") DirectMailGoodsShoppingCart record, @Param("selective") DirectMailGoodsShoppingCart.Column ... selective);

    DirectMailGoodsShoppingCart selectOneByExample(DirectMailGoodsShoppingCartExample example);

    List<DirectMailGoodsShoppingCart> selectByExample(DirectMailGoodsShoppingCartExample example);

    DirectMailGoodsShoppingCart selectByPrimaryKey(Integer cartId);

    DirectMailGoodsShoppingCart selectByPrimaryKeyWithLogicalDelete(@Param("cartId") Integer cartId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoodsShoppingCart record, @Param("example") DirectMailGoodsShoppingCartExample example, @Param("selective") DirectMailGoodsShoppingCart.Column ... selective);

    int updateByExample(@Param("record") DirectMailGoodsShoppingCart record, @Param("example") DirectMailGoodsShoppingCartExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoodsShoppingCart record, @Param("selective") DirectMailGoodsShoppingCart.Column ... selective);

    int updateByPrimaryKey(DirectMailGoodsShoppingCart record);

    int batchInsert(@Param("list") List<DirectMailGoodsShoppingCart> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoodsShoppingCart> list, @Param("selective") DirectMailGoodsShoppingCart.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsShoppingCartExample example);

    int logicalDeleteByPrimaryKey(Integer cartId);
}